package com.gpf.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.gpf.pojo.CheckBox;
import com.gpf.pojo.SysRole;
import com.gpf.pojo.SysRoleMenu;

@Mapper
public interface SysRoleDao {
	Long getRowCount(@Param("name") String name);
	List<SysRole> findPageObjects(@Param("name")String  name,@Param("startIndex")Integer startIndex,@Param("pageSize")Integer pageSize);
	int deleteObject(@Param("id")Integer id);
	int insertObject(SysRole entity);
	SysRoleMenu findObjectById(Integer id);
	int updateObject(SysRole entity);
	List<CheckBox> findObjects();
}
